import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from './home.js'
import Personal from './personal.js'
import Coupons from './coupons.js'
import Cash from './cash.js'
import Detail from './detail.js'
import Search from './search.js'
import Login from './login.js'
import Cart from './cart'
import Distribution from './distribution.js'
import Message from './message.js'
import Register from './register'
import Classify from './classify'
import Purchase from './purchase'
import Pay from './pay'
import FoodClassify from './foodclassify'
import Order from './order'
import Collection from './collection' 
import Set from './set'
import Editing from './editing'
import editing from './editing'
Vue.use(VueRouter)

const routes = [
  ...Home,
  ...Cash,
  ...Coupons,
  ...Personal,
  ...Detail,
  ...Search,
  ...Login,
  ...Cart,
  ...Distribution,
  ...Register,
  ...Classify,
  ...Purchase,
  ...Pay,
  ...FoodClassify,
  ...Message,
  ...Order,
  ...Collection,
  ...Set,
  ...editing,
] 

const router = new VueRouter({
  mode:'history',
  routes
})

export default router
